package com.jiajia.study.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiajia.common.utils.PageUtils;
import com.jiajia.study.product.entity.AttrAttrgroupRelationEntity;
import com.jiajia.study.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author zjj
 * @email zjj@qq.com
 * @date 2025-06-09 15:37:17
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrAttrgroupRelationEntity> getByAttrId(Long attrId);

    /**
     * 删除关联关系
     * @param collect   删除关联关系
     */
    void deleteBatchRelation(List<AttrAttrgroupRelationEntity> collect);

    /**
     * 根据分组id，查询分组id和分组之间的关联关系
     * @param attrGroupId   分组id
     * @return              关联关系
     */
    List<AttrAttrgroupRelationEntity> getByAttrGroupId(Long attrGroupId);
}

